﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using PMS.Domain.AggregatesModel.MessaeAggregate;
using System;
using System.Collections.Generic;
using System.Text;

namespace PMS.Infrastructure.EntityConfigurations
{
    public class MessageCenterEntityConfiguration : IEntityTypeConfiguration<MessageCenter>
    {
        public void Configure(EntityTypeBuilder<MessageCenter> builder)
        {
            builder.ToTable("MessageCenter");
            builder.Property(b => b.Message).IsRequired();
            builder.Property(b => b.Title).IsRequired();     
            builder.Property(b => b.UserId).IsRequired();
        }
    }
}
